-
-
Notifications
You must be signed in to change notification settings - Fork 340
Allow saving Parse Objects with Master Key #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* @return null | ||
*/ | ||
public function save() | ||
public function save($useMasterKey=false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a space before and after the equal signs in 3 locations, then I'll merge this. Thank you!
dbebf07
to
99d4a47
Compare
Added spaces to my branch |
* | ||
* @return null | ||
*/ | ||
public static function saveAll($list) | ||
public static function saveAll($list, $useMasterKey = false) | ||
{ | ||
static::deepSave($list); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops, need to pass useMasterKey here too.
Allow saving Parse Objects with Master Key
Note that code properly handles the case when there are more that one request, using thus the batch request. But in line 919 the $useMasterKey param should also be used to cover the case when there is only one request. |
Didn't noticed! Great work! |
Resolves #28.
Arguments are defaulted for backwards compatibility.